package com.phoenix.jsef.code.generator.template;

import java.util.List;

import org.springframework.stereotype.Component;

import com.phoenix.jsef.common.CUtils;

import freemarker.template.TemplateMethodModel;
import freemarker.template.TemplateModelException;

@Component
public class TemplateMethodForUnderlineToCamel implements TemplateMethodModel{

	@Override
	public Object exec(List arg0) throws TemplateModelException {
		
		return CUtils.underlineToCamel(arg0.get(0).toString(),Boolean.valueOf(arg0.get(1).toString()));
	}

}
